﻿﻿using System;
using System.Collections.Generic;
using System.Web;
namespace WebMvc.App.Models.Tips.Common
{
    public class alipay_orders
    {
		public string id=null;
		public string config_id=null;
		public string payment_type=null;
		public string alipay_order_id=null;
		public string subject=null;
		public string total_fee=null;
		public string body=null;
		public string show_url=null;
		public string time=null;
		public string status=null;
		public string ip=null;
        public string __name__;
        public alipay_orders(string name)
        {
            this.__name__ = name;
			this.id = string.Format("{0}.id",__name__);
			this.config_id = string.Format("{0}.config_id",__name__);
			this.payment_type = string.Format("{0}.payment_type",__name__);
			this.alipay_order_id = string.Format("{0}.alipay_order_id",__name__);
			this.subject = string.Format("{0}.subject",__name__);
			this.total_fee = string.Format("{0}.total_fee",__name__);
			this.body = string.Format("{0}.body",__name__);
			this.show_url = string.Format("{0}.show_url",__name__);
			this.time = string.Format("{0}.time",__name__);
			this.status = string.Format("{0}.status",__name__);
			this.ip = string.Format("{0}.ip",__name__);
        }
        public alipay_orders()
        {
			this.id = string.Format("{0}.id",__name__);
			this.config_id = string.Format("{0}.config_id",__name__);
			this.payment_type = string.Format("{0}.payment_type",__name__);
			this.alipay_order_id = string.Format("{0}.alipay_order_id",__name__);
			this.subject = string.Format("{0}.subject",__name__);
			this.total_fee = string.Format("{0}.total_fee",__name__);
			this.body = string.Format("{0}.body",__name__);
			this.show_url = string.Format("{0}.show_url",__name__);
			this.time = string.Format("{0}.time",__name__);
			this.status = string.Format("{0}.status",__name__);
			this.ip = string.Format("{0}.ip",__name__);
        }
        public override string ToString()
        {
            if (__name__ == null)
            {
                return "alipay_orders";
            }
            else
            {
                return string.Format("alipay_orders as {0}",__name__);
            }
        }
    }
}